package edu.usc.tweetool.hibernate;

/**
 * TermtitleId entity. @author MyEclipse Persistence Tools
 */

public class TermtitleId implements java.io.Serializable {

	// Fields

	private String termVector;
	private String title;

	// Constructors

	/** default constructor */
	public TermtitleId() {
	}

	/** full constructor */
	public TermtitleId(String termVector, String title) {
		this.termVector = termVector;
		this.title = title;
	}

	// Property accessors

	public String getTermVector() {
		return this.termVector;
	}

	public void setTermVector(String termVector) {
		this.termVector = termVector;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TermtitleId))
			return false;
		TermtitleId castOther = (TermtitleId) other;

		return ((this.getTermVector() == castOther.getTermVector()) || (this
				.getTermVector() != null
				&& castOther.getTermVector() != null && this.getTermVector()
				.equals(castOther.getTermVector())))
				&& ((this.getTitle() == castOther.getTitle()) || (this
						.getTitle() != null
						&& castOther.getTitle() != null && this.getTitle()
						.equals(castOther.getTitle())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTermVector() == null ? 0 : this.getTermVector()
						.hashCode());
		result = 37 * result
				+ (getTitle() == null ? 0 : this.getTitle().hashCode());
		return result;
	}

}